package main

import (
	"log"
	"net"
	"time"
)

func main() {
	listener, _ := net.Listen("tcp", ":8081")
	conn, _ := listener.Accept()
	handleConn(conn)
	time.Sleep(time.Hour)
}

func handleConn(conn net.Conn) {
	buf := make([]byte, 1024)
	n, err := conn.Read(buf)
	log.Println(n, err)
	conn.Close()
}
